package com.imooc.pojo.VO;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * @author lihongyu
 * @CreateTime 2021-10-14 09:48
 * @Description 搜索商品视图封装实体
 */
@ApiModel("搜索商品视图封装实体")
public class SearchItemVO implements Serializable {

    /**
     * 商品id
     */
    @ApiModelProperty(name = "itemId",value = "商品Id",dataType = "String")
    private String itemId;

    /**
     * 商品名称
     */
    @ApiModelProperty(name = "itemName",value = "商品名称",dataType = "String")
    private String itemName;

    /**
     * 商品销量
     */
    @ApiModelProperty(name = "sellCounts",value = "商品销量",dataType = "Integer")
    private Integer sellCounts;

    /**
     * 商品图片地址
     */
    @ApiModelProperty(name = "imgUrl",value = "商品图片地址",dataType = "String")
    private String imgUrl;

    /**
     * 商品价格
     */
    @ApiModelProperty(name = "price",value = "商品价格",dataType = "Integer")
    private Integer price;

    public String getItemId() {
        return itemId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public Integer getSellCounts() {
        return sellCounts;
    }

    public void setSellCounts(Integer sellCounts) {
        this.sellCounts = sellCounts;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "SearchItemVO{" +
                "itemId='" + itemId + '\'' +
                ", itemName='" + itemName + '\'' +
                ", sellCounts=" + sellCounts +
                ", imgUrl='" + imgUrl + '\'' +
                ", price=" + price +
                '}';
    }
}
